The hotplug agent sets the path now, but that's not as practical to do
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 7 Oct 2005 12:11:41 +0000 (13:11 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 7 Oct 2005 12:11:41 +0000 (13:11 +0100)
with udev rules.  So instead, make sure that the path is set in the vif
scripts themselves.

Signed-off-by: Jeremy Katz <katzj@redhat.com>
tools/examples/vif-bridge
tools/examples/vif-nat
tools/examples/vif-route

index 2a3903a31031cfef5967f36512c2fdc3aeaffb04..0f692d689f146a05c191b55898cb77792e0a6c1b 100755 (executable)
@@ -33,6 +33,7 @@
 
 # Exit if anything goes wrong
 set -e 
+export PATH=/sbin:/bin:/usr/bin:/usr/sbin:$PATH
 
 echo "*vif-bridge $*" >&2
 
index 00977f881983b27fb82bf4769342483f8d53e0d4..f268fdcedc05b4a09f1c90872244502d69f5d37c 100644 (file)
@@ -22,7 +22,7 @@
 
 # Exit if anything goes wrong
 set -e 
-
+export PATH=/sbin:/bin:/usr/bin:/usr/sbin:$PATH
 echo "*vif-nat $*" >&2
 
 # Operation name.
index 2c0b2d1d3a59314fb44988b1781f400597abba31..efb83881d226127c5c14b814c7fdec2d6d2e99f2 100755 (executable)
@@ -23,7 +23,7 @@
 
 # Exit if anything goes wrong
 set -e 
-
+export PATH=/sbin:/bin:/usr/bin:/usr/sbin:$PATH
 echo "*vif-route $*" >&2
 
 # Operation name.